<?php

require_once 'db_conn.php';
$id = $_GET['id'];

$sql = "
DELETE FROM `t_message` WHERE `id` = $id    
";
echo $sql ;

//die;

$result = $conn->query($sql);

if($result===false){
    echo "数据库操作失败";
}else{
   header("location:index.php");
}

